<template>
    <div class='tabHeader-box'>
        <div class="title-item">
            <div class="title-item-content">
                <span>首页</span>
                <el-icon :style="{ visibility: 'hidden' }">
                    <i-ep-Close />
                </el-icon>
            </div>
        </div>
        <div class="title-item">
            <div class="title-item-content">
                <span>用户及权限</span>
                <el-icon :style="{ visibility: 'hidden' }">
                    <i-ep-Close />
                </el-icon>
            </div>
        </div>
        <div class="title-item">
            <div class="title-item-content title-item-selected">
                <span>其它出入库</span>
                <el-icon :style="{ visibility: 'visible' }">
                    <i-ep-Close />
                </el-icon>
            </div>
        </div>
        <div class="title-item">
            <div class="title-item-content">
                <span>商品库存</span>
                <el-icon :style="{ visibility: 'hidden' }">
                    <i-ep-Close />
                </el-icon>
            </div>
        </div>
    </div>
</template>

<script lang='ts' setup name='TabHeader'>

</script>

<style lang='scss' scoped>
.tabHeader-box {
    flex: 1;
    display: flex;
    position: relative;

    .title-item {
        position: relative;

        .title-item-content {
            cursor: pointer;
            border: none;
            padding: 10px 0 10px 16px;
            font-size: 12px;
            color: #868d9c;
            display: flex;
            align-items: center;

            .el-icon {
                margin-right: 4px;
            }
        }

        .title-item-selected {
            background-color: #fff;
            color: #3d7fff;
            border-radius: 8px 8px 0 0;
        }

        .title-item-content::after {
            content: '';
            position: absolute;
            right: 0;
            top: 12px;
            width: 1px;
            height: 12px;
            background-color: #d5d9e0;
        }
    }

    .title-item:last-child {
        .title-item-content::after {
            display: none;
        }
    }
}
</style>